home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / SDIOLE.PAK / SAMPCONT.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  56 lines

  1. ///----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1994 by Borland International
  3. // The sample ole container window. Use as a client of a frame window
  4. //-----------------------------------------------------------------------------
  5. #if !defined(SAMPCONT_H)
  6. #define SAMPCONT_H
  7.  
  8. #define IDS_DOCFILEFILTER    1
  9. #define CM_EDIT_PASTESPECIAL 301
  10. #define CM_EDIT_PASTELINK    302
  11. #define CM_EDIT_INSERTOBJECT 303
  12.  
  13. #if !defined(RC_INVOKED)
  14.  
  15. #if !defined(OWL_OLEWINDO_H)
  16. # include <owl/olewindo.h>
  17. #endif
  18.  
  19. #if !defined(OWL_PRINTER_H)
  20. # include <owl/printer.h>
  21. #endif
  22.  
  23. #if !defined(OWL_OPENSAVE_H)
  24. # include <owl/opensave.h>
  25. #endif
  26. #include <owl/editfile.rh>
  27.  
  28. class TOleSampContainer : public TOleWindow {
  29.   public:
  30.     TOleSampContainer(TWindow*        parent = 0,
  31.                       const char far* fileName = 0,
  32.                       TModule*        module = 0);
  33.    ~TOleSampContainer();
  34.  
  35.   private:
  36.     void SetupWindow();
  37.     void CleanupWindow();
  38.  
  39.     void CmFileSave();
  40.     void CmFileSaveAs();
  41.     void CmExit();
  42.     void CmFilePrint();
  43.     void CmFilePrinterSetup();
  44.     void CmPrintPreview();
  45.  
  46.     bool CanClose();
  47.  
  48.     TOpenSaveDialog::TData   FileData;
  49.     TPrinter*                Printer;
  50.  
  51.   DECLARE_RESPONSE_TABLE(TOleSampContainer);
  52. };
  53.  
  54. #endif
  55. #endif
  56.